package com.chaoyi.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chaoyi.model.Novel;

public interface NovelMapper {

	List<Novel> findList(@Param("pageStat")String offset,@Param("pageStop")String limit);

	int findCount();

	int saveNovel(@Param("entity")Novel entity);

	Novel findNovelOne(@Param("id")int id);

	int alertNovelSave(@Param("entity")Novel entity);

	int deleteNovel(@Param("id")int id);

	List<Novel> findListByType(@Param("pageStat")String offset,@Param("pageStop")String limit,@Param("type") int type);

}
